package ffmvc.model;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.ResultSetExtractor;

public class TeamExtractor implements ResultSetExtractor<Team> {

	public Team extractData(ResultSet rs) throws SQLException {
		Team team = new Team();
		team.setId(rs.getString(1));
		team.setTeamName(rs.getString(2));
		return team;
	}
}
